home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / polarrescue.swf / scripts / frame_13 / PlaceObject2_177_9 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2006-05-23  |  367 b   |  17 lines

  1. onClipEvent(enterFrame){
  2.    counter++;
  3.    loaded = _root.getBytesLoaded();
  4.    total = _root.getBytesTotal();
  5.    totTime = getTimer() - startTime;
  6.    perc = loaded / total * 100;
  7.    if(counter < perc / 5)
  8.    {
  9.       perc = counter * 5;
  10.    }
  11.    bar._xscale = perc;
  12.    if(loaded >= total and counter >= 20)
  13.    {
  14.       _parent.gotoAndStop("done");
  15.    }
  16. }
  17.